import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: Home
  },
  {
    path: "/my",
    name: "my",
    component: () => import("../views/My")
  },
  {
    path: "/h5Search",
    name: "h5Search",
    component: () => import("../views/h5Search")
  },
  {
    path: "/onStudy",
    name: "onStudy",
    component: () => import("../views/onStudy")
  },
  {
    path: "/openStudyForm",
    name: "openStudyForm",
    component: () => import("../views/openStudyForm")
  },
  {
    path: "/bookSearch",
    name: "bookSearch",
    component: () => import("../views/bookSearch")
  },
  {
    path: "/videoStudy",
    name: "videoStudy",
    component: () => import("../views/videoStudy")
  },
  {
    path: "/bookSearchRes",
    name: "bookSearchRes",
    component: () => import("../views/bookSearchRes")
  },
  {
    path: "/openStyduResult",
    name: "openStyduResult",
    component: () => import("../views/openStyduResult")
  },
  {
    path: "/studyDetails",
    name: "studyDetails",
    component: () => import("../views/studyDetails")
  },
  {
    path: "/danganshenbao",
    name: "danganshenbao",
    component: () => import("../views/danganshenbao")
  },
  {
    path: "/myXX",
    name: "myXX",
    component: () => import("../views/myXX")
  },
  {
    path: "/myShenbao",
    name: "myShenbao",
    component: () => import("../views/myShenbao")
  },
  {
    path: "/pageData",
    name: "pageData",
    component: () => import("../views/pageData")
  },
  {
    path: "/activityConter",
    name: "activityConter",
    component: () => import("../views/ActivityList")
  },
  {
    path: "/myActiv",
    name: "myActiv",
    component: () => import("../views/myActiv")
  },
  {
    path: "/fabuzhe",
    name: "fabuzhe",
    component: () => import("../views/fabuzhe")
  },
  {
    path: "/myCollect",
    name: "myCollect",
    component: () => import("../views/myCollect")
  },
  {
    path: "/activtyDetails",
    name: "activtyDetails",
    component: () => import("../views/ActivityDetail")
  },
  {
    path: "/record",
    name: "record",
    component: () => import("../views/CompanyList")
  },
  {
    path: "/recordDetails",
    name: "recordDetails",
    component: () => import("../views/CompanyDetail")
  },
  {
    path: "/personageRecord",
    name: "personageRecord",
    component: () => import("../views/PersonList")
  },
  {
    path: "/preDetails",
    name: "preDetails",
    component: () => import("../views/PersonDetail")
  },
  {
    path: "/newsList",
    name: "newsList",
    component: () => import("../views/NewsList")
  },
  {
    path: "/newDetails",
    name: "newDetails",
    component: () => import("../views/NewsDetail")
  },
  {
    path: "/reg",
    name: "reg",
    component: () => import("../views/Reg")
  },
  {
    path: "/login",
    name: "login",
    component: () => import("../views/Login")
  },
  {
    path: "/getPassword",
    name: "getPassword",
    component: () => import("../views/GetPassword")
  },
  {
    path: "/vipApply",
    name: "vipApply",
    component: () => import("../views/VipApply")
  },
  {
    path: "/vipReg",
    name: "vipReg",
    component: () => import("../views/VipReg")
  },
  {
    path: "/awardList",
    name: "awardList",
    component: () => import("../views/AwardList")
  },
  {
    path: "/awardDetail",
    name: "awardDetail",
    component: () => import("../views/AwardDetail")
  },
  {
    path: "/myActivityList",
    name: "myActivityList",
    component: () => import("../views/MyActivityList")
  },
  {
    path: "/notice",
    name: "notice",
    component: () => import("../views/Notice")
  },
  {
    path: "/vip",
    name: "vip",
    component: () => import("../views/Vip")
  },
  {
    path: "/vipAudit",
    name: "vipAudit",
    component: () => import("../views/VipAudit")
  },
  {
    path: "/updateApplyVip",
    name: "updateApplyVip",
    component: () => import("../views/UpdateApplyVip")
  },
  {
    path: "/vipAuthentication",
    name: "vipAuthentication",
    component: () => import("../views/VipAuthentication")
  },
  {
    path: "/payTicket",
    name: "payTicket",
    component: () => import("../views/PayTicket")
  },
  {
    path: "/myActivityDetail",
    name: "myActivityDetail",
    component: () => import("../views/MyActivityDetail")
  },
  {
    path: "/applyRecord",
    name: "applyRecord",
    component: () => import("../views/applyRecord")
  },
  {
    path: "/search",
    name: "search",
    component: () => import("../views/search")
  },
  {
    path: "/showCertificate",
    name: "showCertificate",
    component: () => import("../views/showCertificate")
  }
];

const router = new VueRouter({
  // base: "/h5/",
  mode: 'history',
  routes: routes
});

export default router;
